<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Status;

use Auth;

class StaticPagesController extends Controller
{      //home
      public function home()
      {
         $feed_items=[];
         if(Auth::check()){
           $feed_items=Auth::user()->feed()
                                   ->paginate(16);
         }
         //dd($feed_items);
        return view('static_pages/home',compact('feed_items'));
      }

      //help
      public function help()
      {

        return view('static_pages/help');
      }

      //about
      public function about()
      {

        return view('static_pages/about');
      }
}
